package com.horay.springbootdemo.common.model;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Class description
 *
 * @author heyingcheng
 * @date 2019/11/5 21:28
 */
@Setter
@Getter
@Builder
@ToString
public class Foo {

    public static final String INSERT_SQL = "INSERT INTO foo(f_name) VALUES (?)";

    public static final String DELETE_BY_ID_SQL = "DELETE FROM foo WHERE id = ?";

    public static final String UPDATE_BY_ID_SQL = "UPDATE foo SET f_name = ? WHERE id = ?";

    public static final String SELECT_SQL = "SELECT id, f_name FROM foo";

    public static final String SELECT_COUNT_SQL = "SELECT COUNT(*) FROM foo";

    public static final String TABLE_NAME = "foo";

    public static final String ID = "id";

    public static final String F_NAME = "f_name";

    private Integer id;

    private String fName;


}
